import {legacy_createStore as createStore,applyMiddleware,combineReducers} from "redux" // legacy_createStore 是创建仓库
// applyMiddleware 是处理中间件的 combineReducers合并抽离后的reducer的
import shopreducer from "./shopreducer"  // 引入子仓库
import logger from "redux-logger" // 引入日志中间件
import thunk from "redux-thunk" // 引入处理异步中间件
let reducer = combineReducers({
    shopreducer
})
export default createStore(reducer,applyMiddleware(thunk,logger))
